//app.js
App({
  globalData: {
    smsbaoApi: "https://www.smsbao.com",
  },
  onShow: function (opt) {
    /** 判断场景值，1044 为转发场景，包含shareTicket 参数 */
    if (opt.scene == 1044) {
      wx.getShareInfo({
        shareTicket: opt.shareTicket,
        success: function (res) {
          var encryptedData = res.encryptedData;
          var iv = res.iv;
        }
      })
    }
  },
})